speechSetVoice
Type
handler
Summary
Set the voice
Syntax
speechSetVoice(<pVoiceIdentifier>)
Description
Use speechSetVoice to specify the voice to use.
note
Setting voices is supported on Android 6+. On earlier versions this handler does nothing.
Parameters
Name | Type | Description |
---|---|---|
pVoiceIdentifier | The voice identifier must be one of the identifiers found in the keys of the array returned by the speechGetVoices function. |
Examples
-- use a chosen voice
speechSetVoice "com.apple.speech.synthesis.voice.kanya"
-- return to default voice
speechSetVoice empty
Compatibility and Support
OS
mac
ios
android
Platforms
desktop
mobile